package com.tts.service;

import java.util.List;

import com.tts.bean.User;
import com.tts.mapper.UserMapper;

public class UserService {
	private UserMapper userMapper;
	
	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}

	public User getUser(String name){
		//User user = userMapper.getUser(name);
		return null;
	}
	
	public List<User> getUsers(){
		/*List<User> users = new ArrayList<User>();
		User user = new User();
		user.setEmail("feng.shen@hp.com");
		user.setId(1);
		user.setName("Kevin");
		user.setPassword("111111");
		user.setStatus(1);
		user.setCreateDate(new Date());
		users.add(user);
		return users;*/
		return userMapper.getUsers();
	}
}
